added semaphore support

Added semaphores.h, bits/semaphore.h, updated sys/cdefs.h