Portability fix for code/zlib from ioquake/jedi-academy