Add support for AArch64

These two patches written whilst porting libkqueue to AArch64 improve portability by fixing detection of sys/eventfd.h and writing a problematic format string more portably. Hope you find them useful!