Make configure fail if ncurses is missing