Rip out Win32 stuff, leaving in what looks useful.