Suppress / fix various resource-related warnings.