Fixed: erd_depth should now work with libgsto. Also external binaries should be compiled properly. Some cleanup as well.