Attempt to fix Qt build.
Merge pull request #3293 from thedax/qtBuildFix

Attempt to fix Qt build.