Library path adaptation