Adding support for snprintf, and sprintf_s
strdup to _strdup on windows