C++11flag bug

correct bug which cause crash with old compilers which does not support c++11