Foundation lib: addressed the remainder of known issues in the source code preventing compilation on Windows.  All remaining issues for building the lib on Windows are project generation related.