updates to the win32 port -- Chris Larsen