Use lround instead of llround, since it has better compatibility with older MingW and Cygwin versions