Use `strcpy`/`itoa`(`snprintf`) workaround only on non-Windows
Use `sprintf` instead of `snprintf` for compatibility
Merge pull request #2 from tomyun/snprintf

Missing `snprintf` on Windows