fix for supporting 64-bit architecture
Merge pull request #1838 from alekcac:ios64_fix