Fix broken cmake config and use files.