tools build: Fix test-clang.cpp with Clang 8+