Fix zlib detection when there is no pkg-config file
See similar patch in glib: https://gitlab.gnome.org/GNOME/glib/merge_requests/482. When fixed in both glib and -good, it won't build libz as subproject any more for Android.
Edited by Xavier Claessens