Added functionality for setting up curl_setopt proxy.