cmake: update linking and fix node path for ubuntu

* ubuntu typically installs node.h in src/node.h so find_path now supports both
  paths
* use cmake to find appropriate threading library
* use pkgconfig output to find maa library

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>