setjmp trick for ruby-2.1.3 on OSX 10.7, closes #3050