Fix MinGW build

What do you mean with "supporting functions"? What are they "supporting"? (Maybe you're looking for the more common term "helper functions"?)