bugfix:
- link pthread, if needed.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>