Support cURL versions before 7.19.4; only use protocol whitelist if available.