You need ncurses-dev. In Debian a library exists as libfoo or sometimes just foo. To compile something using that library requires the matching libfoo-dev or foo-dev.