Fix to work with more recent zlib