Fix MinGW build

@darkf The point is that if we justify submitting new undocumented code just because "oh, the old code is undocumented already anyway", we'll end in an even larger mess in the future.