Use _setjmp()/_longjmp() only on BSD-like systems for now.