Darwin has pthread in libc

Fixes the following warning:
clang: warning: argument unused during compilation: '-pthread'
Merge pull request #1792 from rubenk/fix-unused-argument-warning-on-osx

Fix unused argument warning on osx