fix Makefile and log.c error