Made '#include <malloc/malloc.h>' a conditional including so non-bsd systems won't whine.