make the code compatible with OSG 3.0