Visual Studio - fixed various issues when compiling on Windows.

Dear David,

I just purchased the edition 2 version and have to say: excellent work!  I am really excited to play around with Compute Shaders, but I am waiting for NVIDIA NSight to support them before using them in production code (I'm addicted to NSight and can't live without it).

This patch should allow compilation of the Cookbook code on Microsoft Windows with Visual Studio 2012.  There are still a lot of warning messages related to various conversions that I might take a look at explicitly casting if I have time.

I have been doing a lot of work with NVIDIA CUDA and have a pretty solid Mesh class built that almost never touches the CPU.  This is a lot faster for computing various elements (computing sphere positions, calculating normals, creating indices, etc).  It might be fun to migrate some of your Mesh code to use Compute Shaders.  It would be especially useful for expensive operations like computing adjacency.

Sincerely,
Wesley