[PATCH v2] build: add support for ncurses[w][5,6]