Fix building fonts with mingw-w64. Part1.