Coverity fixes

Opportunity for discussion of a series of proposed fixes for Coverity-reported issues.

NOTE: Given fs2open is yet to formally move to Github, this pull request WILL NOT actually be merged into master. Instead, following discussion and approval, the patches will be committed to the current fs2open SVN which is periodically merged into master.