fix a bug in socket where it could not work since RubyMotion 2.0
0.5