Make IPAddr check work with Ruby < 2.0

This wasn't caught by Travis because the tests were not in a directory
that spec_standalone looks for.
Merge pull request #19 from sorenh/ipaddr-ruby-less-than-2.0

Make IPAddr check work with Ruby < 2.0