Thought in a hostile world: the evolution of human cognition