fix malloc include for OSX