Fix problems with RUBY_ENGINE under ruby 1.8