C99 support caused trouble

Géza Kiss reported that he was unable to compile vector.c due to the
C99 features used therein, and provided a patched version of vector.c
which doesn't depend on `for (int i...` functionality. I'm rolling with
this.