Changed  CXXFLAGS from -std=c++11  to -std=c++0x