The current code uses the header when testing ncurses. On portsnap
builder, the header is not available at this time.
Note that /lib/libncurses.so have gone long ago and 9, 10, 11 all have
/usr/lib/libncurses.so, I think it's reasonable to just use the shared
library itself to determine the availability.