title: gensim fails to install with the legacy-install-failure
body: <p>I am trying to install gensim.</p>
  <p>For this I ran the command</p>
  <p><code>pip install git+https://github.com/witiko/gensim.git@feature/bm25</code>.</p>
  <p>But it does not install and fails with the following error message:</p>
  <pre><code>      building 'gensim.models.nmf_pgd' extension
        gcc -pthread -B /XXXX/envs/codex-env/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /XXXX/envs/codex-env/include -I/XXXX/envs/codex-env/include -fPIC -O2 -isystem /XXXX/envs/codex-env/include -fPIC -I/XXXX/codex-env/include/python3.9 -I/XXXX/envs/codex-env/lib/python3.9/site-packages/numpy/core/include -c gensim/models/nmf_pgd.c -o build/temp.linux-x86_64-cpython-39/gensim/models/nmf_pgd.o
        gcc -pthread -B /XXXX/envs/codex-env/compiler_compat -shared -Wl,-rpath,/XXXX/envs/codex-env/lib -Wl,-rpath-link,/XXXX/envs/codex-env/lib -L/XXXX/envs/codex-env/lib -L/XXXX/envs/codex-env/lib -Wl,-rpath,/XXXX/envs/codex-env/lib -Wl,-rpath-link,/XXXX/envs/codex-env/lib -L/XXXX/envs/codex-env/lib build/temp.linux-x86_64-cpython-39/gensim/models/nmf_pgd.o -o build/lib.linux-x86_64-cpython-39/gensim/models/nmf_pgd.cpython-39-x86_64-linux-gnu.so
        building 'gensim.similarities.fastss' extension
        creating build/temp.linux-x86_64-cpython-39/gensim/similarities
        gcc -pthread -B /XXXX/envs/codex-env/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /XXXX/envs/codex-env/include -I/XXXX/envs/codex-env/include -fPIC -O2 -isystem /XXXX/envs/codex-env/include -fPIC -I/XXXX/envs/codex-env/include/python3.9 -I/XXXX/envs/codex-env/lib/python3.9/site-packages/numpy/core/include -c gensim/similarities/fastss.c -o build/temp.linux-x86_64-cpython-39/gensim/similarities/fastss.o
        gensim/similarities/fastss.c: In function ‘ceditdist’:
        gensim/similarities/fastss.c:725:9: error: ‘for’ loop initial declarations are only allowed in C99 mode
                 for (WIDTH tmpi = 0; tmpi &lt;= len_s1; tmpi++) row2[tmpi] = tmpi;
                 ^
        gensim/similarities/fastss.c:725:9: note: use option -std=c99 or -std=gnu99 to compile your code
        gensim/similarities/fastss.c:727:9: error: ‘for’ loop initial declarations are only allowed in C99 mode
                 for (WIDTH i2 = 0; i2 &lt; len_s2; i2++) {
                 ^
        gensim/similarities/fastss.c:738:13: error: ‘for’ loop initial declarations are only allowed in C99 mode
                     for (WIDTH i1 = 0; i1 &lt; len_s1; i1++) {
                     ^
        error: command '/usr/bin/gcc' failed with exit code 1
        [end of output]
  
    note: This error originates from a subprocess, and is likely not a problem with pip.
  error: legacy-install-failure
  
  × Encountered error while trying to install package.
  ╰─&gt; gensim
  </code></pre>