Fix flann cannot compile nearest_neighbors.cpp