Backported sane callWithStackShell implementation; added ARM support.