attempt to work around window's lack of sigsetjmp (quick hack version). it's almost amazing that this used to work on _WIN32