Add Win32 support.

It builds with MinGW-w64 and all tests pass.