- Fixed `sys/stat.h` detection. - Fixed `HAVE_PTHREAD_H` define to avoid warning with Python includes. - Added missing quotes for the semaphore include check.
- Fixed `sys/stat.h` detection. - Fixed `HAVE_PTHREAD_H` define to avoid warning with Python includes. - Added missing quotes for the semaphore include check.