fix dll build on windows