I like the technology fueled by magic idea! And I don't think the barracks would have to change. They could just be significantly older, built by the humans to use on the dragons' land during another war (since the dragons probably have different barracks to accomodate their spacial needs).