Added -std=c++11 to HAVE_CXX11 check