Fixes SjLj preparation step on iOS

Rebased on current used head.