Fix compilation with old OSG version.

10 jobs for devel in 6 minutes and 57 seconds (queued for 1 second)