Only use captureStackTrace where available