Fixed c++0x check to properly set CXXFLAGS.