Using SSLeay_add_all_algorithms instead of OpenSSL_add_all_algorithms.