disable buffering on stdout/stderr using _IONBF

This is particularly useful when piping the output to a parent process