Fix warnings in foundation
Fix warnings in dired