Use std::vector instead on non-standard GCC extension.

Variable length arrays is a C99 extension provided by GCC.  Not supported by all compilers...