Improved library search (for Leptonica).