Aging, Factor Prices, and Capital Flows