Reinstate tr24731 vsnprintf_s (and fix it!)

Signed-off-by: Rick Taylor <rick@tropicalstormsoftware.com>
Add some reasonably sensible defaults for HashTable

Signed-off-by: Rick Taylor <rick@tropicalstormsoftware.com>