Added Ruby platform detection to the gemspec.

* This is (hopefully) a workaround to JRuby install issues via the RubyGems servers.