Fixes for Windows.  Compiles, but the license doesn't work yet.