Fixes #684
Work on hwloc thread pinning

Fixing affinity masks. This is related to #473, #526 and #529
More hwloc thread pinning fixes

This fixes issues #473, #526 and #529
Fixing problem when a thread should be bound to multiple Cores
Tweaks to make core affinity work on Windows as well
hwloc_topology compilation fix

Signed-off-by: Thomas Heller <thom.heller@gmail.com>
Reverting last patch as the cast is not necessary.
Fixing future and promise unit tests
Correcting the comparison error in hwloc_topology
Adding some additional asserts to hwloc-topology
Fixing gcc complaints
Fixing thread pinning hickups releated to cgroups
Fixing merge error
hwloc topology tweaks
updating hwloc_topology from trunk
rebase conflict
merge conflict
Comment fixes
Adding more convenient overloads for performance_counters::discover_counter.