Add backtraces on supported platforms
Fix build on 8 and 9