fix build with new version of ncurses