Revert "using pkg-config to find OpenSSL"

This reverts commit 7f1bb7bb45fe7f02956ce80b53973f3afa37ad30.