fixing warnings (not the unused ones) in various files