initial work on setjmp/longjmp for emscripten