FindCurses: use tinfow when wide support is requested
ncurses has a separate library for wide character support:
A produced output executable would segfault if
ncursesw is linked together with
tinfo instead of
The library name in
find_library is now set accordingly for each of both cases (ncurses / ncursesw).