Not sure why newer ldconfig decided to start doing this, but this fixs functionality when ldconfig does.