Customize malloc via libdl