Make krita build on windows
Under some circumstances, krita's main executable is too big for msvc to handle.