This would fix https://phabricator.kde.org/T11612
@aspotashev @cgilles
Builds fine. But I have no means to test this at runtime.