hwloc, build fix, gitignore

Migration from libtopology to hwloc and few minor tweaks.