Support c++0x flag for older gcc compilers