Warnings as errors for windows

Windows build is clean
Fixed compiler warnings
More fixes