Revert "using pkg-config to find zlib"

This reverts commit d535bbfb1d011210c4b7694104fa14a0ab8a2cb7.