Get rid of the -pthread flag

This is a leftover from using semaphores for log locking.