[1/2] fix thrift build on OSX

Can we define a version of GLIBC_PREREQ in portability.h so that people can do this type of thing?