Fix compilation for latest rustc.

Some warning are still there.