[1/2] fix thrift build on OSX

I'm just relaying suggestions from our diff reviewers