Replace fail! with panic!
Fix lint warnings.
Merge pull request #12 from mrmonday/fix-panic

Fix build with latest master (travis still fails unfortunately)