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.

There is one failing test, which was already present in v3.5 (Issue #196), and which is NOT fixed by this pull request.