adapted all the function arg formats in ext/zlib