[configure] fail if ncurses was not found and fix the date test