Fixed warnings when compiling in upcoming version of Xcode