Fixed a bunch of compiler warnings.

14 files changed