On invalid depslog header, restart build instead of showing an error.

Also add tests for invalid headers.

(This already calls Warn() in ninja.cc, no changes needed for that.)