Check for both zlib.h and -lz before enabling zlib support in the amalgamation