Link statically against gcc and stdc++