Substitute m4 obsolete macros

AC_PROG_LIBTOOL is deprecated. See here for more: https://www.gnu.org/software/libtool/manual/html_node/LT_005fINIT.html