Avoid using a dynamic array as it causes problems in VC++
Pointer arithmetic with void* is undefined.
Fix casting Value->Barrier
Fix typo in setting pointer size.
Fix cpu core count detection to use hwloc library

Uses the HWLOC_OBJ_PU count which should return the logical cpu count;
fallbacks to old detection if hwloc didn't work out.
Fix autotools for changes in llvm-config (llvm 3.5)

llvm-config --ldflags no longer prints the libraries, and has
separate command for that: llvm-config --system-libs

Fixes issue 112
basic device driver:
Advertise fp64 support to make all ViennaCL tests pass.
basic device:
* Initialize some device properties to fix some AMD SDK cases.
* Disable the 'basicdebug' case of AMD SDK 2.9 as it tests
  undefined behavior via a kernel with an out-of-bounds array
  access.
Make the first device in the device list the default OpenCL
device no matter what it is.  Do not force 'pthread' to be the
only possibility.
Merge remote-tracking branch 'pocl/master'