Fix up some ios 7.1 stuff
Fix for a 64-bit issue