Fix compilation for latest rustc.

Some warning are still there.
Merge pull request #134 from dpc/dev

Fix compilation for latest rustc.