Fix unit test compilation problems.