build: fix 'make test' target to build with clang