Fixed the C++11 compilation
Added an additional check for the -stdlib=libc++ option