Compiler warnings fixes round 1.
13 files changed