Scientists have found signs of respiratory infection in the fossilized remains of a 150 million-year-old dinosaur.