Search for libtinfow before libtinfo.