using pkg-config to find OpenSSL

Fixes compilation on non-Linux systems, e.g. MinGW