Update gemspec to handle RUBY_ENGINE error.

RUBY_ENGINE isn't defined in ruby 1.8.x.