ncurses: improved configure switches

Closes #364.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
ncurses: fix pkgconfig file generation