tests/automake.mk: Fix building of test runners