Change autoconfig test file,add C tmp-files to gitignore
Various tidy-ups and fix the build-process