Fix socks proxy & failing tests with ruby 2.0.