Fix build error on Linux regarding missing pthread references.

I received link errors regarding pthread when building on Debian Linux, just a quick patch to include it at link time.