update to recent rust changes: now we use Deref
Merge pull request #42 from suhr/fix-build

update to recent rust changes: now we use Deref