now checks for clang before using the libstdc++ flag