fix std::round nonportability