"make clean" at beginning of tests for repeatability.
Simplify test build script and fix some minor build issues discovered.