Basically some simple changes to deal with issues during my attempt at compiling Krita with mingw-builds 5.4.0 Note that this doesn't actually make Krita compile properly with said mingw-w64 version. The output crashes when opening a new file. That will take some time to investigate.