Fixed linking problem on HP-UX.
Merge pull request #597 from kacfengine/hpuxFix

Fixed linking problem on HP-UX.