Fixes GUI issues on Windows.