Minor bugfixes

Two fixes:

1) Fix for issue #112 (LLVM 3.5 llvm-config changed)

2) Fix the cpu core count detection to use hwloc (with fallback to the old method)