Use std::vector instead of C-array as clang does not support initialization of a C-array by a variable. Patch by Jonathan Youett [[Imported from SVN: r10052]]