fix compilation with MSVC 2019 compiler
This series of patches fixes issues related to building and running KTechLab on Windows, using MSVC 2019 compiler.
It contains removal of some hack and adds some compatibility fixes.
Building and running tested with KDE Craft on Windows 10.