Added a std::Debug flush callback so we can catch debug messages per-app