Fix warnings from GCC about VLAs.