Fix jruby/jruby#775

Prefer IPv4 stack by default.