build: properly use autotools
modernized automake from jan engelhardt