fix iso c++ compilation error