Substitute _snprintf for snprintf to facilitate building on Windows.