Fix native build
fix socket compilation (conflicting ipv6)
Merge pull request #528 from Rapiere/ruby

Fixes for ruby 2.0.0-p0