FindOpenSSL: use extra dependencies from pkg-config as well
This is important if OpenSSL is linked against an external zlib.
I upgraded CMake from 3.14.0 to 3.25.1 in a build chroot with only static OpenSSL and ZLIB and the build started failing without this.