some autoconf fixes recommended by recent autoconf

After executing ./buildconf.sh autoconf gave me some warnings and recommendations in these warnings. Here I am implementing these recommendations.