Small fixes for windows

Windows now builds after nomis52's changes.
_WIN32 not WIN32