Support Ruby2.1. Add curses to dependencies.