amended semaphore invocations to allow for different patterns used by sem_open (Apple) and sem_init (Windows)
reinstated expat header xmltok/nametab.h