Move to using CMake and add version information