[1/2] fix thrift build on OSX

yes please, update the PR