Extract libc++ logic into a CMake find module.

This also adds the search for libc++ headers on Mac OS X, where they seem to be kept in odd places like /usr/lib/c++ and /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/c++.