Fix dll-build on Windows