Minor corrections

Fixes to a couple of warnings thrown up by Xcode.