Endogenous change: On cooperation and water in ancient history