use -static-libstdc++ to link only if a test determines that gcc is new enough
to accept it

(gcc 4.4.3 doesn't accept it, and was used in Ubuntu 10.04 LTS)