Make sure that the detected openssl successfully links before enabling support.
Also fixes builds like './configure CC="gcc -m32" ' as requested by @sipa.
Additionally, this should allow #148 to work without disabling tests.
Make sure that the detected openssl successfully links before enabling support.