Add dist-hook for ChangeLog generation and small autofoo fixes.