The attached patch relies on a previously submitted patch (#3115434) and allows the foldingcd to be built on Ubuntu 10.04 & 10.10. The primary fix is a patch from here (http://www.eglibc.org/archives/patches/msg00073.html) and upgrading the Glibc version to 2.12.1.
Build fixes for Ubuntu 10.04