Add a polyfill for Error.captureStackTrace to make Safari work again.