Fixes of compiler warnings.

Lots of compiler warnings fixes.