Fixes for AOT compilation for iOS.