Update for rust changes
Merge pull request #15 from am0d/master

Update for rust changes.

 - libc moved to external crate