Some corrections to Visual Studio 2008 / 2010 projects.

Tested with VS2008 / 2010 and passed.

Note: There are 6 warnings about using "localtime_s"
instead of "localtime". These can safely be ignored.