Add support for both, ncurses and ncursesw.