add initial cmake file
update git ignore for CMake
Update CMakeLists to make it build
add support for ssize_t