fix warnings about format string/types