This is just an initial edit, starting at aproximately line 221 to see if this
simple change allows ncurses to compile.  I will still need to figure out how to
test to see if this modification is needed, assuming it works.  I had to jump
through a few other hoops as well, but I am taking this a step at a time.