Refactor ninja build file.

Modernize it!

Signed-off-by: Thiago Farina <tfarina@chromium.org>