Use alloca when compilng under Visual C++ because variable length arrays are not currently supported.