Adding cmake file. Adding msvc support. Currently 36 out of 43 projects can build with visual studio 2012.