Conditional require to support JRuby