IMPORTANT:  4.2.0 C/C++ Linkage Issue

Forward-port changes from 4.2.0 branch to master branch.  See pull request 44 for details:

https://github.com/adaptivecomputing/torque/pull/44