Fix compilation against updated rustc APIs

Fixes #29
Merge pull request #30 from wizeman/u/fix-build

Fix compilation against updated rustc APIs