common: link to libpthread
Merge pull request #92 from krzycz/common-libpthread

common: link to libpthread