Fix make test on FreeBSD.

CC=clang detected by top makefile needs to be passed on, and gmake is
needed. Also fix 'make clean' to clean objects created by tests.