Import hwloc from core