[2/2] fix thrift build on OSX

I put in 2 hours tonight into trying to pull in that file. It is a huge rabbit hole. Is there any way to avoid it? Or maybe you know a better way than putting it in, then `porability.h` then `compatability.h` then `VDSO` etc..