Updated for latest Rust
Merge pull request #157 from ozkriff/master

Updated for latest Rust
Changed build to make it work in my own project.

I need to link it statically and I don't really see a way to do it
without hacking the way it's built.