define snprintf as _snprintf on Windows
(VS2010 doesn't have that function)