musl: Reimplement rint so it doesn't depend on floating point operations precision.
musl: Use __builtin_rint if available.
msvcrt: Use rint() from the bundled musl library.