I've built HarfBuzz with the attached patch with mingw, using g++ src/harfbuzz.cc --shared -o libharfbuzz-0.dll --no-exceptions and it seems to work fine.