MSVC: All lite-mode tests pass.

The project file still only compiles a test binary, but it should be easy to separate out a library project from here.

Thanks again to Bryan Boreham <bjboreham@gmail.com> for much help getting this working.
Fix build on non-MSVC compilers.