change round to be c++98 compatible