switch to using pkg-config to get flann info