using -stdlib=libc++ only in clang