fix mingw32  snprintf bug.