- Issue #21285: Refactor and fix curses configure check to always search
  in a ncursesw directory.