Make rust 0.8 compatible
Merge pull request #5 from skade/0.8-compat

Make rust 0.8 compatible