Fix MinGW build

Needs a comment.