fix to work with rustc 0.12
Merge pull request #6 from susurri/master

fix to work with rustc 0.12