Fix build with openssl enabled.