Buildfix for Qt (some platforms). Fixes #4574