[1/2] fix thrift build on OSX