configure: Use pkg-config to handle zlib dependency if possible

Preserves fallback for systems like darwin without zlib.pc

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
6 jobs for zlib.pc in 2 minutes and 24 seconds (queued for 3 seconds)