configure.ac cleanup/etc

... tests had been completed.

2) Adds a better test for pthreads (more platforms, etc).
3) Cleans up quoting in in configure.ac (not all of it,... but a lot of it).
4) A number of portability issues in configure.ac are not fixed.
5) make maintainer-clean now works.