Correctly link in pthreads after dngsdk.