Fix compilation warnings as a result of ignoring return values
Fix open() call in TempDirToucher