Various compile source fixes

New test harness.