add a pthread time lock shim
add system-agnostic time functions
implement __GNUC_PREREQ/__GLIBC_PREREQ on systems that don't have it
osx does not define these ipv6 fields
Merge pull request #11 from danslo/thrift-fastcgi-osx2

[2/2] fix thrift build on OSX