Apply upstream patch to make clang-3.1 work with libstdc++-4.6