Add ncurses support (enabled via compiler -D flag)