Osc: Update to use latest libiio API

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>