Make it work after small libsd api changes.