Restore support for TA logging and debug.h header