Vs2008 - Issue #219

Compilation failure on VisualStudio 2008 (v3.5-145-g21855be)

NOTE: This fixes a number of issues with the vs 2008 projects for the current version. It does NOT fix these issues for version 3.5.