zlib: rewrite argv parsing