make use of NINJA_STATUS environment variable, and make use of %P / %w / %W introduced in ninja 1.12.0