Fixed Xcode compiler warnings