Fixing compilation for the curses case