Log Message: replace <malloc.h> with <stdlib.h>, allowing this to build on systems without <malloc.h>.