Add cmake to build

Changes for compile in Visual Studio 2012 (using cmake).