Fixed compilation of tests on Clang.