fix compile error on c++03 mode