compat: backport some netdevice.h defs