Revert "Make the malloc(3) family of functions weak and make their non-weak"

This reverts commit ff42d21b8e7e6a88887d0177722647288e50d5de.

This commit seems to be causing problems with python 2.7.