Makefile: fix for cross-compilation

Reported-by: Paolo Mantovani <paolo@cs.columbia.edu>
Signed-off-by: Emilio G. Cota <cota@braap.org>