cmake: Print C++ stack trace after INTERNAL_ERROR messages

Since an INTERNAL_ERROR is always a bug, it will be useful to have the
program stack trace available in the report.
Merge topic 'internal-error-backtrace' into next

3de4c295 cmake: Print C++ stack trace after INTERNAL_ERROR messages