Fix a bunch of coverity issues.
Merge branch 'master' of https://github.com/adaptivecomputing/torque