(somewhat) better macro for snprintf on MSVC