add a pthread time lock shim
add system-agnostic time functions
[1/2] fix thrift build on OSX
implement __GNUC_PREREQ/__GLIBC_PREREQ on systems that don't have it
Merge branches 'thrift-fastcgi-osx' and 'thrift-fastcgi-osx2'