Use generic_find to locate compilation dependencies

Change-Id: I4d1e5411c6025110e513653fb98865d094fa27ae