Fix ncurses configure flags