Always link the Ruby extension to -lpthread because we use pthread functions.