Get rid of all warnings and errors on Windows.

This increases msvc compatibility.
Yes, that should do it.