Resolve all compilation warnings.

Resolved all compilation warnings in latest clang to prevent future problems.