Investment incentives in open-source and proprietary two-sided platforms