Issue #3678: Remove wrappers and call foreign functions directly
Add externfn macro and correctly label fixed_stack_segments