Upgrade m4, automake and libtool to latest versions