get rid of numerous gcc-4 warnings
14 files changed