Only disable __thread with clang on Mac OS X