Add some missing <stdlib.h> for OSX