[qt5] Set correct *FLAGS and toolchain on qmake calls

Fixes #490254