THRIFT-1740 Make C++ library build on OS X and iOS Patch: Ben Craig minor modification by Roger Meier