The second part of the patch uses a VirtualQuery()-based trick
shown by Matt Pietrek in his "Under The Hood" column for the
April '97 issue of MSJ to determine the module that contains
a given address. This is because Windows does not have a direct
equivalent of dladdr() as far as I can tell (I'm not a Windows
programmer, so I might be quite wrong on this).
The third part of the patch just ensures that we do not
call _Unwind_Backtrace() for non-SJLJ targets as shown by
the message linked above.
Tested lightly using an i686-pc-linux-gnu to i686-pc-mingw32
cross-compiler.
Comments? Suggestions? Approvals? ;-)