fixe int32_t definition for VC11

int32_t is nowhere in msvc, so the version check could be even removed
snprintf definition is needed here, too
Fix C89 compat needed by MSVC