fix s2 in C++11 compile mode