fix rgcurses backward compatibility