Cross-platform access to err.stack