Fix build errors in test harness.