Add some fflushes to make it easier for piped programs to talk to