Fixed doctests
Added ulimit -s unlimited to the places where we called ldd