Only include malloc.h if available (it isn't on OSX).