Otherwise it causes a warning on NetBSD, but an error on Linux.
It was using internals of ncurses data structures even though there's an official API for this... XXX: might need INCOMPAT_CURSES patterns for some older NetBSD versions, but I don't know which ones, so I didn't add them.