Fix interface change in build.cc

Also chmod 644 all .cc and .h files.
Add a new ninja tool: finddeps.

This will find and output the dependency path from one target to
another.