fix build on linux, now it works with both USE_OSG=1 and =0