Fix autotools support.