Capture I/O and system call results (-Wunusedresult fixes)

Changed files to capture all fgets/fscanf/fread/system unused results. Please pay attention to what I chose for the result of finding an error, i.e. return values to make sure I picked the right choices. After this is merged and the EMaskOrient fix, there should be no compiler errors for Ubuntu/gcc32.