kconfig: use pkg-config for ncurses detection