Remove <malloc.h> include as malloc() is in <stdlib.h>, and <malloc.h> does not exist on Mac