build: another round of glibc/libstdc++ hacking

Now with libstdc++ compat back to GLIBCXX_3.4.