MSVC fixes

I always forget that there is no round function in the math library in MSVC.