Compilation is successful on Windows with mingw32 now, though linking fails on an odd error.