missing link flag

libpthreads link flag is missing when i compiled this library, adding it to cmake makes everything happy