Fix automake/autoconf deprecations, remove duplicate BUILT_SOURCES line