Fix VC warnings (unused variable, implicit float to int conversion, impl...

...icit double to float conversion).