ncurses: improved configure switches