An Integrated Assessment Model of Economy, Climate-Change and Endogenous Population