Changed NCurses code to be optional.