Use builtin setjmp and longjmp to avoid a MinGW bug