fix gui build on windows