Added changes to compile in iOS 7 with 64 bit arches