make get_flann_lib more robust on linux