Default to clang on __APPLE__ to support thread local variables
Fix compilation on __APPLE__