[semsg] Patch build problems on EL7.