Modify configure option for ncurses