Check $XAPIAN_CONFIG and automatically use libtool if from an uninstalled build
Translate search_ranges example to C++
Update