Various autotools fixes

I found out that 0.9.0 source tarball lacked some files and when I tried to build it I had problems with various missing items in the automake.

So I fixed up all the issues that are currently visible on master and made "make distcheck" pass and verify that everything works.

With next release I must recommend running "make distcheck" prior doing tag/releasing the tarball, as it catches most build time errors.