fix library build on windows