fix building on windows