use -std=c++0x for gcc <4.7

Travis-CI, and probably many others, are still using gcc <4.7, and will need
this version of the -std=c++11 flag.