The origin of mammalian endothermy