fix warnings from xcode compiler