HPCC-12513 Clean up various windows warnings

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
There's a test      
        if(nextdt > nowdt)
two lines above...