Moved all windows specific operations to os.windows.