Fix various small issues (warnings review)