main/zlib: fix crc32 on 64-bit systems
thanks to sam@gentoo.org for pointing this out
upstream patch: https://github.com/madler/zlib/commit/ec3df00224d4b396e2ac6586ab5d25f673caa4c2
upstream bug report: https://github.com/madler/zlib/issues/618
alpine bug report: #13711 (closed)
fixes "java.util.zip.ZipException: invalid entry CRC" in Java JRE/JDK
this backports the fix from master to 3.15-stable
(cherry picked from commit 6754a900)