Fix ncurses without pkg-config.