Running stockfish or komodo on Centos 6

I wanted to try out a chess engine, but I didn’t want to run it on my own computer where I have the GUI. So what to do? I had a centos 6 computer with enough cpu power, but when I downloaded and ran stockfish I got:

$ ./komodo-10.1-linux
./komodo-10.1-linux: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by ./komodo-10.1-linux)
./komodo-10.1-linux: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by ./komodo-10.1-linux)

The problem is Centos 6 has too old glibc version. So how to fix this? The short version is to download the finished files I’ll show you how to create in the long answer. They are ld-linux-x64-64.so.2, libc.so.6 and libstdc++.so.6.

Long answer:
For stockfish you can download the src and compile it. But for komodo that is not possible. So, you need to compile both gcc and glibc to be able to get the files. It takes a long time, and some GB of space, but here is how you do it, if you don’t trust my precompiled files: