Compile only on CRuby and don't fail on other rubies

JRuby has the JARs included and everything is in plain Ruby for
Rubinius.
Specify extensions and minimum Ruby version in gemspec