Add missing dependency.
Fix warnings.
Remove useless dependency.