471c5755fc
GIF find_package only locates the header and library, it doesn't fail compile tests when detecting the version, but falls back to 3 (as of at least cmake 3.7.2). Make sure the library links to avoid incorrect detection when cross compiling. Change-Id: I0224180bbdf800ab261a9333236730b23c006e69