corrected pthread linking error