Fix for issue 44; copy in code from deprecated OSG function

git-svn-id: http://osgworks.googlecode.com/svn/trunk@553 c67418bc-a6eb-11de-8ba5-91705c1537ed