fixing ifdef detection for eventfd and write interruption in cross_thread_semaphore_t