Avoid linking with zlib, which is a dependency of openssl, not ours.
--- a/configure
+++ b/configure
@@ -23017,7 +23017,7 @@ if test $ac_cv_lib_z_inflateEnd = yes; t
 #define HAVE_LIBZ 1
 _ACEOF
 
-  LIBS="-lz $LIBS"
+#  LIBS="-lz $LIBS"
 
 fi