Linking against static gcc and stdc++ libraries