Some more coverity fixes.
Merge branch '4.5-dev' of https://github.com/adaptivecomputing/torque into 4.5-dev