Fix compatibility issues with Illumos.

Thanks to Theo Schlossnagle.
Fix debug info for main chunk of stripped bytecode.
x86: lj_math_random_step() clobbers XMM regs on OSX Clang.
FFI: Fix frame traversal for backtraces with FFI callbacks.
Typo.