idLib modifications for iOS