Add ncurses and remove unused ubuntu package dependencies

Review 961 by @tryneus
Closes #1482