[Building] Include defines.pri after Qt modules are added

Fixes regression from 74883f8af413616bedc9defeccd2406e45827acc
Closes #1253