Add a missing <stdlib.h> for OSX