Fixed cmake issues.