Fix compilation against updated rustc APIs

Fixes #29