[1/2] fix thrift build on OSX

Can we make these feature flags vs. linux & apple ?