Mode debian-related fixes