Make c++0x by default.

For older gcc, we use -std=c++0x instead of std=c++11.