Windows support. Builds cleanly with msys+mingw x64, though I neeed to patch the mtest progs. Will try to get this change upstreamed.
Merge pull request #1 from batterseapower/master

Windows support