patch for osg build