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.

As a side note, there are more failures on FreeBSD/clang than Linux/gcc, which I haven't looked into yet.