Updates to support Windows and compile with VS2013 C++ november update.
Some bugs eliminated using the Visual Studio debug template library.