`CaptureStackBackTrace` is exported as `RtlCaptureStackBackTrace` in `kernel32.dll`, but mingw doesn't export it :( Indeed mingw-w64 does.