Many fixes for gui_win32