The Bytef and uLongf should rather come from zlib