Fix MinGW segfault
Fix MinGW segfault

bgrimstad/splinter,bgrimstad/splinter,bgrimstad/splinter,bgrimstad/splinter,ds283/splinter,ds283/splinter,ds283/splinter,bgrimstad/splinter,ds283/splinter,ds283/splinter