CMake build files, and vs2012 compatibility WIP.