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