Fix building and add initial cmake files