Thrift: fix wrong strerror_r declaration on OS X

This is using the same check as Folly is doing in String.cpp
Merge pull request #23 from mcuelenaere/fix_sterror_r_osx

Thrift: fix wrong strerror_r declaration on OS X