Correct init_ssl return code checking
Add lcrypto to LDLIBS