[semsg-plugins] Patch build errors on EL7.