ninja: Factor out target-level definitions

Worth another 3M in the WebKit build.ninja file.