remove c++11 need. The code now compiles and runs with -std=c++98