fix format string warnings as these are treated as errors on some ruby builds