[2/2] fix thrift build on OSX

Yes, that was one of the things holding me back doing the PR. Copying should be okay...