make png extraction dependent on whether the system has zlib.