HPCC-12513 Clean up various windows warnings

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
possibly true - I was trying to preserve the current semantics where they weren't obviously wrong.