fix `Undefined symbols` without `HAVE_ZLIB`