Use xhpdi if available

Fixes build issues