Small Win32-related fixes.