Existence of Competitive Equilibria with Externalities: a Differential Viewpoint