Workaround for ncurses on Ubuntu systems.