Revert "Avoid dynamic array allocation on stack."
This reverts commit 1bc284de58f0b0e60c47cbebae10a4e36ed9380b.
(fix for non C99 compliant compiler - msvs)