add CONTRIBUTING.md
restructure autotools build