Fixed compiler warnings and UCDetector warnings.

Project build stable.