Fix compile errors for pipes and stdin