More MINGW compatibility changes

7 jobs for MINGW_changes in 78 minutes and 21 seconds (queued for 3 minutes and 34 seconds)
Status Job ID Name Coverage
  Test
passed #5822
Linux
clang-c++11

00:21:38

passed #5824
Linux
clang-c++98

00:18:35

passed #5827
Linux
cppcheck

00:00:30

passed #5821
Linux
gcc-c++11

00:07:53

passed #5823
Linux
gcc-c++98

00:04:49

passed #5825
Apple
macos-c++11

00:16:24

passed #5826
Apple
macos-c++98

00:08:29