Fixed issue building on windows