Now compiles on Windows using mingw 4.8