Use --std=c++0x or --std=c++11 depending on the version of gcc.

This principally supports g++4.6, though this build doesn't yet succeed due to gmock incompatibility with the flag.