fix compile error with c++11x