Got the basics working for Windows 8 #95

The basics work on Windows now - all unit and regression tests pass (on Linux).