Fix for MinGW