libz: make cross-compilation work on win32