Correct cmake errors