Allow support for newer versions of Nokogiri when using Ruby > 1.8

This same approach is used in the Savon gemspec (version2 branch), however due to the Wasabi dependency we were still not able to update to Nokogiri 1.6.