Do not try to set memory functions -- prototype is broken in newer version and older versions have bugs related to it