Workaround for mingw.