fix build issue for release on windows