lib/process: Add add_stderr flag to process module