[2/2] fix thrift build on OSX