Fix error of initalizing variable-size array when compile with gcc 4.8.x