fix issues when using -Werror=format-security