fix build failure with c++11