Fix compilation with old OSG version.

10 jobs for devel in 4 minutes and 55 seconds (queued for 2 seconds)