HP-UX doesn't have hstrerror(), so make our own for that platform