Fix CPipeFile::Write return value, the internal Write return bool, we need int.
Merge pull request #2416 from ulion/fix_pipefile_write_ret_val

Fix CPipeFile::Write return value, the internal Write return bool, we need int