Updated a couple deprecated OIIO API calls to modern ones.