Endogenous Portfolios in International Macro Models