Updated autoconf scripts and improved C++98 compatibility.