Use Cmake to detect the thread library to link with
Merge branch 'master' of github.com:ahamez/pnmc