Made semaphore inclusion configureable.