Change __clang__ preprocessor check to __APPLE__.

This really should be a check for libc++. But libc++ is only used on
apple platforms so this will do for now.