Fix compilation failures with zlib