Fix compilation error related to SDK API changes