Fix Linux build

 - missing include file
 - a few errors on bad local variable name (Buffer vs Output, ReadPipe vs PipeRead)