use standard header for malloc

malloc.h is not available on OSX for example.