COMP: Fix non-const size array heap allocation."

This fixes build with VC compiler