Link internal tests with static OpenSSL libraries when needed