Fix build for !curses