Fix source code to compile with current rust master branch
Merge pull request #1 from zeux/master

Fix source code to compile with current rust master branch