Replace variable length arrays with std::vector in order to compile under MSVC (C90)