update to recent rust changes: now we use Deref

Make it compile on nightly rust.