Centralize and clean some Win32 stuff...