Updated to latest liboi, modified function in CPhotometry to agree with API change.