Endogenizing Institutions and Their Changes