Added ncurses and pthread.