fixes compile against opensim master

Forgot to send this pull request earlier- I also forget what your policy is regarding bleeding edge vs. releases.