[Qt] Fix build when cross-compiling