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)
Can you reverse this logic so in the future we automatically use both --ldflags --system-libs as it's probably what next LLVM versions have?