Added some missing preprocessor logic for WITH_SSL