add function to manually setup proxy. Useful on iOS where getenv doesn't return proxy settings