Removed unnecessary linking against pthread.