Progress towards Visual Studio compilation

All static libs compile.
Basic tests work in Windows with Visual Studio 2013.