Fixing some coverity issues.

git-svn-id: http://osgworks.googlecode.com/svn/trunk@563 c67418bc-a6eb-11de-8ba5-91705c1537ed
Build fixes for OSG trunk r14262. Keeping up with endless OSG API changes...

git-svn-id: http://osgworks.googlecode.com/svn/trunk@564 c67418bc-a6eb-11de-8ba5-91705c1537ed
From Kevin, see issue 49.

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