Added -lpthread to pkgconfig file.