fixed bug for build on windows