Minor build fixes and Tru64 compatibility

Hi Dave,

Recently had to get Raptor working on an older Tru64 system, and the necessary changes are here. I've also thrown in a few minor deltas I've had kicking around for a while.

Please check out the diffs, and let me know if there's an issue.

--Daniel