Include stdlib.h for malloc

malloc.h is deprecated and unportable