Use find_package to link thread library
Merge branch 'master' of https://github.com/ruslo/sugar