Ninja: Support phony targets properly