[1/2] fix thrift build on OSX

Fair enough, going by some samples online we should be able to use

```
#ifndef __GLIBC_PREREQ
#define __GLIBC_PREREQ(maj, min) \
	((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min))
#endif
```

Do you want me to update the PR?