Updated mcurl code to include multi_curl