Fix compile on Windows: use rint() instead of round().