fix c warnings