replaced sig setjmp/longjmp with default functions.

This change was motivated by the C library for the Javascript compiler only supporting setjmp/longjmp.