fixed build errors on windows