Don't try to compile NamedSemaphore on Windows.

sem_open returns an int, S_IRUSR and S_IWUSR are undefined and errno is set to ENOSYS.