iOS arm64 compile fix

Fix for issue #508 “Can't compile for arm64 architecture”

Tested and working with the proposed change.
Merge pull request #523 from danoli3/arm64-fix

iOS arm64 compile fix