Fix configure script with static openssl.

When building against static openssl libraries, -lssl must always be
accompanied by -lcrypto. In this case, when checking for the existence
of SSL_CTX_new.