A very lame way of avoiding #822: segfault for mingw