Fix some trivial breakage under Win32. Some functionality is still broken, but it seems harder to fix.
Mmm... Parallels can really boost development of cross-platform code!