Enable -std=c++11 and -std=c++0x only when supported