Fixed compilation for MacOS with Xcode 5.

For reasons unknown [they moved](http://stackoverflow.com/a/5929887/1682275) `<malloc.h>` to `<malloc/malloc.h>`.