Add -lncurses to the libraries, some environments require this, and it does no harm.