Make it work on newer Rubies