You need to include not just glibc, you also need to include ld.so sometimes, because older libs can become incompatible with current ld.so (Linux port of SMAC for example), and I fear what it might do sometimes when trying to link openGL or Vulkan driver that links to newer glibc.