[Olena-patches] 3948: Improve g++-2.95 compatibility.