Fix mingw build (fixes #101)