build shared ocgcore