Fixed building the curses module on NetBSD.