Fix compatibility with clang build using libstdc++.