fix compile error occurring with non-c++11 compilers