Fix autotools based build