Add ninja-mode

https://github.com/martine/ninja
Merge pull request #1401 from yasuyk/ninja-mode

Add ninja-mode