Efficient Portfolios with Endogenous Liabilities