add support for older versions of automake
update from upstream