Fix building on windows