Adding general fixes to libstdc++ compilation

Needed to get our code compiling for use with downstream customers who still have not moved off of linking to libstdc++