ncurses: Fix build warning