Fixes after Xcode update

Fixed a couple of warnings that came up after updating xcode.