libport: Move rint fallback implementations from msvcrt to libport.