now builds on windows with mingw/cygwin