Add WITH_CXX11 configuration flag (currently for gcc and clang)