Add some casts for gcc 4.8.3 with more-than-default warnings enabled.
16 files changed