Fixed all outstanding VS compilation issues

Also updated VS2008 files.