Fixed compile errors in Log: Project dependencies, rewrites, TODOs, shotgun refactoring.