Fix issues in cmake list.