stdout.c: Add a flag to activate buffer tree API.