On one system (Gentoo) the original was fine. However, on Ubuntu with GCC 4.7.2 I am gettint linker errors (sqrt, ... bunch of functions not found when linking).