gcc doesnt like "const int" as array index