netlink: fix standalone module build
(cherry picked from commit a87d2d1830933b81caaf30a67a4bef0a253ecd0b)