On the Moser-Onofri and Prekopa-Leindler inequalities