Remove libncurses dependency.