workaround for mingw bug [http://comments.gmane.org/gmane.comp.gnu.mingw.user/41724]