Fix warnings from XCode analyzer

Fixes GH-71.