Fix backtraces when using the Apple runtime.