Be smarter about finding preload library.