Add -pthread.

This relates to  https://github.com/jubatus/jubatus_core/pull/16.