Add RUBY_ENGINE handling to compiler directives