adapt autotools makefiles to the latest changes