Changes for mingw32
Thread implementation for pre-vista win32
Just use mingw32 pthreads!
Don't compile things we don't use
Handle both UNICODE and !UNICODE on win32
Safe string copying on windows
fixup windows main for C++