made backtrace platform dependent