Try to be a little smarter about guessing the end of the stack on x86/x86-64