Partially fix building on QNX 6.5.

From GitHub pull request #394; that was requested as a pull to the old
1.2 branch, not the trunk.  I also updated comments to reflect the
changes.