Move eventfd2 defines to compat.h

Reported by Dave Miller on Sparc.