Syntax fixes for xcode compiler