Add check for C++11 and use correct CXXFLAGS