Fixes compilation problems when ssl is enabled properly.