Adjust to work with new autoconf macros, AC_FUNC_MALLOC