Add -pthread.

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