Fix autotools build system