makefile: some build tweaks

Signed-off-by: Dan Trifan <jimsth@gmail.com>