Fix node bug that makes large writes to stdout fail

We wallpapered around a node bug that breaks compilation in case large writes are made to stdout (see: comment:7:ticket:30321 for context). This is biting us in cases where we actually do need those large write to debug problems like in legacy/trac#31538 (moved).

We should provide a better fix/workaround.