Add workaround for mingw compilation