Renamed vars/functions to build with new autoconf

Autoconf 2.13 has removed compatibility for several deprecated macros and names. This commit fixes the names so that the code builds with the new version.