Automatically run ldconfig if possible.