Add dist-hook for ChangeLog and various fixes/cleanups