add configure option use ncursesw