allows for compilation on windows using craft and MSVC Differential Revision: https://phabricator.kde.org/D24589