Added cmake code to build system
Added windows build rules to CMakeLists.txt
Merge branch 'cmake'