[Bug 1183960] ncurses built --with-pcre2 causing issues for packages that use both standard C regex API and ncurses API