Use stdlib.h instead. OSX doesn't have malloc.h, and all Unices seem to have malloc in stdlib.h