refine zlib option handling.