Hacks and fixes for ldspider we need for https://github.com/researchstudio-sat/webofneeds. The home of ldspider is here: https://code.google.com/p/ldspider/