[dev-qt/qtgui:5] Fix QCONFIG_DEFINE with USE="opengl".

Fixes bug #515080
Merge pull request #59 from JYF