Fix warnings for strnagely configured applications