Fix crash on OSX when proxy is used

See GH-275