Make sys_startgui() work again on Windows. Fixes #685.

7 jobs for startgui-windows-fix in 222 minutes and 54 seconds (queued for 3 seconds)