put FLANN stuff inside the guard to fix #188