Fix a couple of bugs in OpenSSL detection. Also, deal better when there are multiple...