[2/2] fix thrift build on OSX

I don't think I can get away with making thrift depend on HHVM. Should we just copy that util file in here or something?