Make compile under MSVC
Reviewers: apol, bcooksley
Reviewed By: apol
Differential Revision: https://phabricator.kde.org/D8467