Require curses only if Ruby version is 2.1 or later.