Clean up Win32 implementation