Fix DMG creation issue by using rcopy to copy folders, and Windows SHA-256 checksum generation by using raw mode for opening files to be hashed.

git-svn-id: svn://svn.icculus.org/fs2open/trunk@11010 387891d4-d844-0410-90c0-e4c51a9137d3
Fix mantis 3020 (pilot stats issue)

Reset pilot stats when we're creating a new CSG file. Otherwise stats
from the current pilot or campaign will be inherited by the new pilot /
campaign

git-svn-id: svn://svn.icculus.org/fs2open/trunk@11011 387891d4-d844-0410-90c0-e4c51a9137d3
Fix cppcheck (warning) Logical conjunction always evaluates to false: logfile_type < 0 && logfile_type >= 2.

git-svn-id: svn://svn.icculus.org/fs2open/trunk@11012 387891d4-d844-0410-90c0-e4c51a9137d3
Fix cppcheck (style) Same expression on both sides of ||.

git-svn-id: svn://svn.icculus.org/fs2open/trunk@11013 387891d4-d844-0410-90c0-e4c51a9137d3
Fix cppcheck (style) Consecutive return, break, continue, goto or throw statements are unnecessary.

git-svn-id: svn://svn.icculus.org/fs2open/trunk@11014 387891d4-d844-0410-90c0-e4c51a9137d3
Fix cppcheck (performance) Prefer prefix ++/-- operators for non-primitive types.

git-svn-id: svn://svn.icculus.org/fs2open/trunk@11015 387891d4-d844-0410-90c0-e4c51a9137d3