Get rid of all warnings and errors on Windows.

This increases msvc compatibility.
Dead store?