Add log.h and Makefile to test target.
Guard logfile.cpp and mkpath.cpp.

The file log.h is made by concatenating together three header files and
two cpp files. All of these files need to have #ifndef guards so that
they are not included twice in the same source file.