Makefile: Fix linking errors, round 2

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>