fix ldconfig dependencies and others