fix C++98 compat