Fix link failure on Windows

Visaul C++ doesn't have snprintf().