Add system libraries when checking OpenSSL functions.If OpenSSL is a static library, linking the test programs will requiresystem libraries. (commit: c9072b2)