Fixes compile issue with snprintf on windows