Use pkg-config to detect ncurses

Ncurses provides a pkg-config module which could be used here. If not
available we fall back to the old detection heuristic.

Signed-off-by: Justin Lecher <jlec@gentoo.org>
configure: Use PKG_PROG_PKG_CONFIG + mention pkg-config dep in README