Added a rule to search for ncurses when using cmake