Some fixes for min gw (Thanks to Xan for the patch)

6 jobs for MinGW_Fixes
Status Name Job ID Coverage
  Test
passed clang-c++11 #4805
Linux

00:20:38

passed clang-c++98 #4807
Linux

00:16:48

passed gcc-c++11 #4804
Linux

00:04:59

passed gcc-c++98 #4806
Linux

00:04:01

passed macos-c++11 #4808
Apple

00:16:21

passed macos-c++98 #4809
Apple

00:08:32