Fix for missing 'snprintf' function on Windows.