fix autotools build
add autogen script