Add pthreads to frameworks / libraries