C example updated to support new package downloader API