ncurses 5.9 - patch 20140906

+ build-fix and other improvements for port of ncurses-examples to
  NetBSD.
+ minor compiler-warning fixes.