Better libdir guessing