Fix configure script for mingw32

Note: toxic itself will still not build because the code does not have
the appropriate ifdefs and a WIN32 specific implementation.