Clean up error handling on Win32. Closes #647
Merge branch '97x' of github.com:nddrylliog/rock into 97x
Get rid of Win32 warnings, by, you know, using things properly. Closes #648