Compilation: Fix linux compilation and close file handle on success in pc_opensrc.