add missing include dependancy in log.h

remove unneeded include in pids.c