Added -Wpointer-arith gcc flag, and fixed the resulting warnings.

14 files changed