utils: fix compile errors with gcc 4.7 (-Werror=format-security)