iOS arm64 compile fix

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

Tested and working with the proposed change.