Fixed to compile in Xcode