qtgui: fixes to allow QTGUI to build on Gentoo.
Merge branch 'maint'
Merge branch 'master' into next