Removed -pthread
Removed semaphore.h