fix Makefiles

This patch allows modifications of $(CFLAGS) when invoking make and fixes some
library linking issues.

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
4 files changed