Link with -lcrypto instead of -lssl when using openssl libraries.