Detect tgetent in libtinfo

For linux when build ncurses with --with-termlib you get libtinfo.so by
default.
This patch extends detection of tgetent to libtinfo

Signed-off-by: Justin Lecher <jlec@gentoo.org>