Use stack probes instead of segmented stack support on x86

Fixes #13259 and #14742
Fix sigaction on OS X
Print stack overflow messages for Windows, Linux and OS X