Fix some issues reported by gcc