Remove debugging via trace.log
Declare stdoutbuf as pointer