Move ninja_build.py to common