Fixed cmake warnings.