Replace runtime array size (incompatible with some old compilers) with vector.