compat: Add genlmsg_parse() helper function.