Sharp borderline Sobolev inequalities on compact Riemannian manifolds