Fixes to get Sprint to build in VS2012 via CMake
Add main routine to tests; add first test; try for better typedef