fixing ms compiler compatibility (format specifiers)