Fixed snprintf on Windows