Change to only add -stdlib on OSX versions that have libc++
Use better test for clang