Compile against older version of GLIBC

Rebased version of #454. Fixes #102.