Updated VS project to silence compiler warnings.
Added fix for missing lrint on older msvc compilers.