Dinosaurs might have known a surprising amount about what we think of as a quintessentially modern problem: global warming.