added cmakelists.txt and fixed build with VS2010