Endogenous preferences and sustainable development