Add rbx and JRuby compatibility