Revert jmp buffer to local scope and create longjmp proxy fn