Workarrounds for mingw / cygwin