Makefile: pass CFLAGS also to gcc when linking

Useful for sysroot situations.

Signed-off-by: Claudio Fontana <claudio.fontana@linaro.org>