autoconf/automake: fix warnings issued by recent versions