ncurses/nc-cui: musl libc fixes