ENH: Improved backtrace{,_symbols}() detection