The physics heightfield, recast mesh object, Bullet NIF loader and world scene headers included osg/ref_ptr, osg/Referenced or osg/Object without using any of them, which made non-render code look tied to OSG; scene.cpp, the one file that does use osg::ref_ptr, now includes it itself.