Improved error reporting to diagnose Debian not finding OpenSSL

And also other minor changes.