fix compilation error when zlib is not found