So I did some searching and found that there are 2 versions of libdispatch floating around. The official version, which is included as part of Debian, Ubuntu and most other distros (
https://libdispatch.macosforge.org/) and a version by nickhutchinson which includes dispatch_get_main_queue_eventfd_np() (
https://github.com/nickhutchinson/libdispatch). The problem is that the official version of the library does not include this function, only nickhutchinson's version, and since his version is not what is currently distributed with distributions, this function doesn't exist for most people, even though they have the latest version of libdispatch.
Is there any other way we can support this functionality without the use of the _np functions? My search also found we are the only project that actually uses it, so it did not gain wide support.