Copied Michele Bini's threading fixes. 

https://github.com/Netsukuku/netsukuku/compare/debian-lenny-compilation-fixes

Some of these are specifically for debian lenny 2008! Do NOT use them all, They will break your installation of netsukuku. I will try to set it up properly.