Fix extra gcc warnings.

When -Wextra flag is enable, gcc complains about base class not
being explicitly initialized in virtual inheritance. This patch
add calls to osg::Object.